package com.wago.mapper;

import com.wago.entity.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

/**
 * Created by "鐤媯鐨勭爜宸�" on 2017-09-11.
 */
@Service
public interface StudentMapper {
    @Select("select * from my_student where sid=#{id}")
    public Student aa(int id);
    @Insert("insert into my_student values(null,#{sname},#{score},#{saddress},null)")
    public int bb(Student stu);
}
